﻿<MudPopoverProvider></MudPopoverProvider>

<MudDatePicker id="picker" @ref="_picker" Label="With action buttons" @bind-Date="date">
    <PickerActions>
        <MudButton Class="mr-auto align-self-start" OnClick="@(() => _picker.Clear())">Clear</MudButton>
        <MudButton OnClick="@(() => _picker.Close(false))">Cancel</MudButton>
        <MudButton Color="Color.Primary" OnClick="@(() => _picker.Close())">Ok</MudButton>
    </PickerActions>
</MudDatePicker>

@code {
    MudDatePicker _picker;
    DateTime? date = DateTime.Today;
}